package com.indusfo.spc.service;

import com.indusfo.spc.pojo.Badpheno;
import com.indusfo.spc.pojo.BadphenoPro;
import com.indusfo.spc.vo.JSONObject;

/**
 * @ProjectName: IEIS2-COM
 * @Package: com.indusfo.spc.service
 * @ClassName: BadphenoService
 * @Author: 熊冰
 * @Description: 不良现象 业务层接口
 * @Date: 2019/8/20 15:51
 * @Version: 1.0
 */
public interface BadphenoService {
    //查询
    JSONObject listBadpheno(Badpheno badpheno);

    ///增加和修改
    JSONObject insertOrUpdateBadpheno(Badpheno badpheno);

    //删除
    JSONObject deleteBadpheno(Long[] ids, Integer dataState);

    //添加不良原因
    JSONObject insertBadphenoBadcause(Long[] ids, Integer badphenoId);

    //删除不良原因
    JSONObject deleteBadphenoBadcause(Long[] ids, Integer badphenoId);

    //添加不良对策
    JSONObject insertBadphenoBadreply(Long[] ids, Integer badphenoId);

    //删除不良对策
    JSONObject deleteBadphenoBadreply(Long[] ids, Integer badphenoId);

    //查询不良原因
    JSONObject selectBadphenoBadcause(Badpheno badpheno);

    //查询不良对策
    JSONObject selectBadphenoBadreply(Badpheno badpheno);

    //全查不良对策
    JSONObject queryBadreply(Badpheno badpheno);

    //全查不良原因
    JSONObject queryBadcause(Badpheno badpheno);

    // 查询不良现象工序
    JSONObject queryPro(BadphenoPro badphenoPro);

    // 新增不良现象工序
    JSONObject insertPro(Long[] ids, Integer badphenoId);

    // 删除不良现象工序
    JSONObject deletePro(Long[] ids, Integer badphenoId);

    /**
     * 去添加查询（产品，任务单，批次）
     */
    JSONObject queryListBadphenoToInsert(Badpheno badpheno);
}
